Please read my post again and try to grasp the code.
It isn't meant for one string only.