Using Character.isWhitespace