Extract parameters and body of a function into strings