check the presence of the '%' at the end of the specified format