Removed unnecessary checks when string is passed in. Issue #3