Made SplitString use references instead of pointers