add trim to appid and appsecret