Set error check to avoid white space tags