Extra space at end of string can be trimmed.