Format, parse and validate values.