lib: use bracket notation instead of startsWith/endsWith for single char
#70814
| Job | Run time |
|---|---|
| 2m 49s | |
| 46m 8s | |
| 48m 57s |
startsWith/endsWith for single char
#70814
| Job | Run time |
|---|---|
| 2m 49s | |
| 46m 8s | |
| 48m 57s |