add absolute value function to lengthOfWords