swap out basename for equivalent shell string modifier