Fixed "off by one" error in searching through the JTextArea