Input field formatting