actually now that i did take the time to read, and with a few modifications my script is working perfectly now.
EDIT: how can i make a regular expression to split "hello world, hi" into "hello" and "world, hi" will
code:
RegExp(/^\s+(\S+)\s+(.+)$/i).exec(sMessage)
do it?