set asocString to asocString's stringByReplacingOccurrencesOfString:"(?:\\r\\n|\\r|\\n|\\u2028|\\u2029|\\s)+" withString:space options:(current application's NSRegularExpressionSearch) range:{0, asocString's |length|()}