added string input feature