fix string expansion