Strip spaces and do not save empty strings