Parse a string representatin of a print dimension
\param input The string representation of the dimension \return The dimension \throws ParseError.INVALID_UNITS The units are invalid