lib: use bracket notation instead of startsWith/endsWith for single char
#54423
| Job | Run time |
|---|---|
| 1h 11m 39s | |
| 1h 11m 39s |
startsWith/endsWith for single char
#54423
| Job | Run time |
|---|---|
| 1h 11m 39s | |
| 1h 11m 39s |