Replace only first match of wildcard