update cppcommon/str_functs.cpp/h for countStrDistance