remove trailing space
save gesture preferences