better string converter factory