using split to parse strings