encode string after using them