why not just set orientation = orientation.toLowerCase()?