Add check class to the runtime error and remove whitespace for inline elements