Replaced toPlainString with getString
Made static field private