validate trim fix warning on passed array
Signed-off-by:KProvance <kevin.provance@gmail.com>