var txt = "\ this is a\ multiline text\ ";
str = str.replace(/^\ {1,4}/, "");
Report message to a moderator