handle strings
Variant that splits in one loop and moves in another