cleanup string casting