Added trailing white space removal.