CLError and CLErrorType, adds error check for string methods