algo4: strmanip: Revisited some string problems