How to break the input string at every 20 characters in java. If the 20th character happens to be a non-space character traverse back and break till nearest space character