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