fixed minor bug preventing uppercase when argument given was undefined