Update smartSubstr.php

Remove trailing whitespace