Remove all whitespace inside string Example: your name => yourname
static String removeAllWhitespace(String value) { return value.replaceAll(' ', ''); }