Use charAt() instead of beginsWith().
Add ResourceNamer class.
Refactor FakeGenerator to use ResourceNamer.