fixed streql function