change empty strings to / for matching