hello guys

what i'm trying to do is, getting a substring from the start of String str until space character is found..

is it somehow feasible? what methods will i need?
HannaH