compare strings instead of pointers