Minor modification to case where data type is character

If no length specified, use length of 1