Refactored to take advantage of underscore.string.