Function that removes char c from string
Function that removes blank spaces, using malloc