fix to avoid problems in case of several whitespaces between class names