You can theoretically write `from_str(num_str.as_slice().trim())`.