finding common chars in strings