Correc regexp and add more infos when bad string is detected