Renamed stripSlash to stripPrefix and moved to common