Is custom class present #2289

Added check for space separated custom class