Check if two given strings are ispmorphic