Patterns In Array Python Functions For Strings