shouldnt the trim happen before the !empty check?
Otherwise `   ` etc would also run into it, only to be outputted as nothing. :)