MINOR sanitize start and end values