Rename characters variable to chars
Rename starts_with function to is_start_with
Rename ends_with function to is_end_with