Remove spaces from start and end of HTML string.
Switch methods order