fn split_merge_steps(s: &str) -> usize