[fix] trim strings in control.js