\begin{equation} f(x) = 42 \label{eq:inputted sub with spaces is working} \end{equation}