def _Normalize(s, max_len=8):
  """Get the first few alphanum chars of a string"""
  result = ''
  for c in s:
    if ('a' <= c <= 'z' or 'A' <= c <= 'Z' or '0' <= c <= '9'):
      result += c
      if len(result) >= max_len:
        break
  return result