Removes \n at end of string.

Signed-off-by: bregell <johan_bregell@hotmail.com>