clean_input

Function clean_input 

Source
pub fn clean_input(input: &str) -> String
Expand description

Clean the input string into a consistent format

  • Remove all non-alphabetic characters (only keep spaces)
  • Convert all characters to lowercase
  • Trim leading and trailing whitespace
  • Remove duplicate spaces
  • Normalize unicode characters