Add validation for downcase and make downcase statement more concise