Usage of capitals in a word is right when all letters in a word are capitals, like "USA" or when all letters in a word are not capitals, like "monkey" or when only the first letter in a word is capital, like "Google". Else we raise the user defined exception as “Invalid Word Format”.