Update StringView.php

Change to support Laravel 5