Add function to return mechanics expressions as strings.