The match at the beginning of a string does get a bonus score (15).
But the score is reduced by each unmatched letter in the string.
In the case of the long string in the above example, the number
of unmatched letters (25) is greater than the bonus for the match
at the start of the string (15). So the score for "onceHello" is higher
than for the long string.
- Yegappan