should return zero if the input is ''
should return zero if the input is ''