added option to convert strings