Fixed error while creating the equivalent class string (removed trailing "null" string)