Remove a line ending space that now was inside a variable