remove string type in functional language