added str pattern in routes