Fix route matching bug by adding begging and end chars