This makes the code more clear and prevents operating on empty strings.
<rdar://problem/108467165>
PR - https://github.com/WebKit/WebKit/pull/12814