compare classes whithout backslash at the beginning of the className if exist