avoid zero-length fields in string formatting