remove unnecessary string conversions