Replace body classes with regex to correctly remove classes