adds function for converting entire string