Fixes a bug where multiple whitespaces broke the named error codes