You can have a variable expand into its value with all characters uppercase or lowercase using the "${myvar^^}" and "${myvar,,}" forms, respectively:
bash$ fn='mixedCase' bash$ printf '%s\n' "${fn^^}" MIXEDCASE bash$ printf '%s\n' "${fn,,}" mixedcase