7035 string-related subroutines should validate input earlier