added regular expression to remove leading /