Handle the case where a flag is located in the end of the assertion string