in reply to Adding to an end of path

How about just...
$path = 'RTE/hull/TR'; $path .= '/newDir';
No need for substitution.

scott.