Remove leading and trailing whitespace to prevent whitespace issues