added small fix for string cases