It's returning proper string twice in new lines, then what's the issue?