implemented terrainFunction function and started implementing findChar on StringParserTerrain trait.