i found the code just i needed on forum in How to split a string with space and store the items in array?