Add trim to remove '-' at slug function