Added regex to remove leading slashes