ensure undefined variables return empty string