Fixed bugs dealing with missing decimals.

Introduced a Utility class. Added a validateContentBlock method that
validates every character of a content block before passing it to the
parseInt method.