Is this infinite loop really needed ? It will stop at either the first or second iteration (and doing nothing at the iteration where it breaks) because of the condition on ``$nextCanBeString``