Fix regular expression in parse method.

Anchor string and the end of line, or this line psrsing fails:
`command_check_interval=15s`, it is treated as integer in def below.