protect against null string