"emptiness".substring(9) returns "" (an empty string) This function is obsolete. Use pad/2 or pad/3.