add custom input error checking for string/characters