fix incorrect calls to string()