added string extension to remove leading / in path