Quick fix to also exclude 'undefined' as strings'