1

You may use a library like stringutils to for that. For your special case, casting the string to bytes and manipulating like the following function will work.
contract MyContract{
bytes tempNum ; //temporarily hold the string part until a space is recieved
uint[] numbers;
functio...