Java PMC help

May I know how to add space in the email body for PMC using java?

How do we ignore case of the headers?

And also, how to create message class to store the data?