finished title cap

finished function with the exception that the string returns an
undefined prior to the sentence