Length of last word problem, a very simple problem and only cost 2 minutes to code.