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

Fixes #5748 

Brings it in line with the way radios are too.