Added a addTailIfNone function to the string module.