Minor code cleanup

small cleanup in the parseAndReplay func
Weird, surprised this isn't easier.