Update str_functions.cpp