update cppcommon/str_functs.h for countStrSimilarity