Replace undefined value with emtpy string instead of zero character