prevent empty strings in keys