Why was a name with a line break at its end refused instead of trimmed?
Text must not contain control characters. "Name\n" is refused, not
trimmed to Name. Spaces around a name are trimmed before its length is
checked; control characters are not removed for you.