Remove new lines in random settings value