Your assigning variables as soon as they are declared.

it could be that strHTML hasn't been used at all yet, and its trying to grab the String between an empty variable.