`sbom-vm.py:49-54` — `str.rstrip('GB')` strips any combination of the characters 'G' and 'B' from the right, not the substring "GB". Use `size_str.replace('GB', '')` or slice the string instead.