better (cleaner, faster) solution to string similarity