Added . and # prefix to language keys checks (like radios)

Fixes #5748