fix for hex code in string