lib: use bracket notation instead of startsWith/endsWith for single char
#80145
| Job | Run time |
|---|---|
| 29m 33s | |
| 36m 47s | |
| 1h 6m 20s |
startsWith/endsWith for single char
#80145
| Job | Run time |
|---|---|
| 29m 33s | |
| 36m 47s | |
| 1h 6m 20s |