better use of str_replace