menu implementation

You can use `string.trim()` directly, without calling `as_slice()`