fix syntax
fix use same regex for key validation + update error message
checkstyle
fix validation allow empty value for content variable