convert the buffer to lowercase