Apply trim on __get