Can you give an example why this is necessary of your situation?
If the element doesn't have consistent casing, then it's probably not a reliable identifier and you might need to find another locator that is more consistent.
If it's the text you're interested in, you should probably validate on element.getText()