replace multiple toLowerCase() calls with single call. Added missing semi-colons