cast __toString to string and remove trailing whitespace
Merge remote-tracking branch 'origin/master' into auto_route

Conflicts:
	Document/Post.php