does concat achieve the same goal: add "/" if missing and remove duplicate "//" if present?