Fixed bug that caused long animation to run for the same duration as a medium animation
Fixed index out of bounds exception in HtmlUtils.trimStart()