check given strings are amargams are not