Clean up text based on RestController