Text this: The Mean Values of Character Sums and Their Applications