API: Use string type instead of u8.