fix string repetition