fix string overlap