reduce str_replaces