Adding finalTest function that checks for underline and removes
substring if there is any.