events parameter should be trimed

events parameter should be trimed