Removing white space and apostrophe from string

From MyWiki
Jump to: navigation, search

String newStr = str.replaceAll("\\s+","-").replaceAll("'", "");