Texts aligned, If clause for matching error added