AuthoringAPI fixing whitespaces