lib: use bracket notation instead of startsWith/endsWith for single char
#90841
| Job | Run time |
|---|---|
| 48m 22s | |
| 57m 48s | |
| 1h 46m 10s |
startsWith/endsWith for single char
#90841
| Job | Run time |
|---|---|
| 48m 22s | |
| 57m 48s | |
| 1h 46m 10s |