Fixed bug for lowercase am/pm