should be simple, but I\'m going crazy with it.
Given a text like:
line number 1 line number 2 line number 2A line number 3 line number 3A line n
Perhaps to make it cross-platform:
String pattern = System.getProperty("line.separator") + " "; string.replaceAll(pattern, "");