CHECK_str

Description: Checks if the input string only contains valid characters and is not longer than the maximum length and shuts down the application if not.
Parameter:
Returns: