BHV-3181: Remove string conversion of array as regex handles this.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam <aaron.tam@lge.com>