PHP remove white space from the beginning and end of a string
trim() - Strip whitespace (or other characters) from the beginning and end of a string.
ltrim() - Strip whitespace (or other characters) from the beginning of a string.
rtrim() - Strip whitespace (or other characters) from the end of a string.
chop() - Alias of rtrim().