.gsub(staging_path, "") is sufficient, otherwise staging_path could be interpreted as a regexp, not a string.