Add check to prevent substring going beyond string.

4 jobs for 1.7.12 in 4 minutes and 18 seconds (queued for 5 seconds)
latest