Function splitStr (wip DO NOT USE)