String-Inspired Gravity through Symmetries