string handling added