fix for blank required inputs
printing null as ' '
working test