return zero for empty string