Well, with my libs too (xsplit is lazy): import d.string, d.func; void main() { string s = " My name is Amit Agarwal 0".dup; s.reverse; foreach (part; s.xsplit()) part.reverse; putr(repr(s)); } Bye, bearophile