str_erase implemented