New line in code with no white space in output?
Make it this way:
word%
\footnote{footnote text}
more text
In other words set a percent sign directly after the word, where the footnote belongs to. See also What is the use of percent signs (%) at the end of lines?.