Remove replace(string[], string[]) prototype

Also improve implementation a bit
Add padLeft() and padRight() methods