Every character in the portion of the string defined by the length argument must be numeric.
Change the program logic so the characters in the portion of the string defined by the length argument are numeric.