Wouldn't

```
int a = d.indexOf("(");
```

be better..?