Update smanip.c

added str_replace function