Initialize string input functionality