added support for string and String object