Added in trim function for string