avoid regex to handle path name