check for string after percent sign
better check for syntax error in -K and -D