Fix logic bug when check for String boolean. (pregmatch ^(true|false))