Reduced line count of AutomaticTextCommand.java