How did Ulysses S. Grant change his name?

His father asked a senator he knew to fill out the paperwork so Ulysses could go to West Point. Because this senator didn't take time to ask he wrote Ulysses's name down wrong as Ulysses S. Grant. His real name was Hiram Ulysses Grant.