Fixed bug for not returning string in routes.php