I need to check if in my String "sir" i have some uppercase letters, if so, i need to assign the value of that letter to another string and then to delete the letter. my first part looks like this:

```
Pattern p = Pattern.compile("[^A-Z]", Pattern.CASE_INSENSITIVE);
    Matcher m = p.matcher(sir);
    boolean b = m.find();

```

so that i check if there is any uppercase letter, then i need to add assigning & deleting. i am not sure if this works. also i found 
 another way:

```
StringTokenizer stringTokenizer = new StringTokenizer(sir);

    while (stringTokenizer.hasMoreTokens()) {
        String a = stringTokenizer.nextToken();
        if(a.equals(a.toUpperCase())) {
            upper = a; 
        }
    }

```

upper returns null everytime, even though sir = cL

does anyone know a way to:

1. get uppercase letter & positon from string
2. delete it

any help would be much appreciated.