Java String Whitespace Clean cleanWhitespace(String str)

Here you can find the source of cleanWhitespace(String str)

Description

clean Whitespace

License

Open Source License

Declaration

public static String cleanWhitespace(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String cleanWhitespace(String str) {
        if (str != null) {
            return str.trim().replaceAll("\u00a0", "");
        }//from  www.j a  va 2 s  . c  o  m
        return null;
    }
}

Related

  1. cleanWhitespace(String definition)
  2. cleanWhitespace(String in)
  3. cleanWhiteSpace(String s, boolean all)
  4. cleanWhitespace(String string)
  5. cleanWhitespaceAndIndentation(String s, String indent)
  6. cleanWhitespaces(String string)