Implemented equal? and cleaned up the convertValueToString function.