sequence replace of symbols in string