trim() on strings before feed to the pattern detections.
Authored by: SeanZ 2011-09-12
Parent: [r5532]
Child: [r5534]