added support for input strings