backgroundSize needs trimmed before second split

also move trimText to Util
trimText regexp needs /g