Change the condition to iterate for split()