Added trimSpaces() function

hey hey hey