more consistent string handling