Detect data type, apply default formatting