pub fn parse_memory_string(s: &str) -> Result<u64, String>
Returns an error if the string cannot be parsed as a memory size.