move string manipulations into the app file.