Be more precise when parsing lengths