Fixed bug where you would get a trailing space if you had a flag in the end of the assertion pattern