Online Java trim() function

trim - Removes whitespace from both ends of a string


Run on Java version: