toLowerCase methods are using english locale now.

Fixed xml building not working on different locales due to device locale toLowerCase methods