Added the String.trim() method which removes any leading or trailing whitespace from a string.