correctSlash function