Rob - Thanks for the tip on not using == and using equals instead.
Jarred - Thanks for the idea but i am not sure i need to import another class. It's good to know in case i might need it.
But can someone help me with the textarea problem? How would you separate one line at a time? Should i use indexOf but doesn't that use only characters and not code for '\n'.
I appreciate any tips to help me learn and i can help others if i can.