solve string similarity