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