split a string for my.chars

made the code a little smaller