Add additional input string check.