Trailing white spaces function added