whitespaces trimmed for max_length() and min_length()