cleaned up string conversions; removing unecessary casts