Java/Groovy simple ascii text editor