I am editing some email that got from tesseract ocr.
Here is my code:
if (email != null) { email = email.replaceAll(\" \",
By realizing that replaceAll() first argument is regex you can make your comparisons much less
replaceAll()
regex
For example you can check for possible misspellings of the word career by the following regex
career
email = email.replaceAll("ca[n|r][e|a][e|a]r", "career"));