freqdec/slabText — pull request #3 by davethegr8 (2012-02-02 02:14:49+00:00)
Title: Trim and remove 2 or more whitespace characters with just 1 space char

Regex replaced "\n " with 'undefined', then converted to a string, plus removing white space from the front and rear of the string helps with consistency.