If you're looking to replace rum in a cake, you can use rum extract is a good non-alcoholic option. Brewed coffee or water/vegan milk can also replace the rum in the recipe.