Using StringUtils.isEmpty() when testing Strings. Renamed the parameter string to the more commonly used str in removeStart() and removeEnd.