lib: use bracket notation instead of startsWith/endsWith for single char
#80891
| Job | Run time |
|---|---|
| 1h 29m 13s | |
| 1h 29m 13s |
startsWith/endsWith for single char
#80891
| Job | Run time |
|---|---|
| 1h 29m 13s | |
| 1h 29m 13s |