use regex to remove slash