improved automatic C function creation [F12] (strip spaces, check for empty)