Erase spaces inside ifelse function calls