Compare strings in the right way