changed string processing for application name to reflect the technique used in rails 3