replaced string with text when possible