Improve parsing size values.
Merge pull request #187 from tristanlins/hotfix/parsing-size-values

Improve parsing size values.