How to access .leftPad .rightPad methods?

How to access .leftPad .rightPad String methods?
This methods not available since moved to OH2.

I use it to straiten messages on LED screen, anybody use this string methods?