updated string modification