Trimming variable outside the `empty` function (to avoid bug with PHP x<=5.5: http://php.net/manual/en/function.empty.php)