input: Write a function to find the maximum consecutive ones in a binary string.
  assert max_ones('10101010001') == 3
  assert max_ones('11111') == 5
  assert max_ones('000000') == 0
output: def max_ones(binary_string):
      return max(map(len, binary_string.split('0')))