lib: use bracket notation instead of startsWith/endsWith for single char
#61700
| Job | Run time |
|---|---|
| 1h 36m 42s | |
| 1h 36m 42s |
startsWith/endsWith for single char
#61700
| Job | Run time |
|---|---|
| 1h 36m 42s | |
| 1h 36m 42s |