Java split before and stop
<p>I have a JTextField and I'm using it to put info into a JTextArea. I want a command that puts text into it, but I'm having to use split to check if it's the /text command.  When I do "/text Message To Put", it cuts off at the spaces.  How can I get the "Message to put" as a whole to output to the JTextArea?</p>
