Fixed code issue - repeating 'startsWith' when it meant to have a startsWith and an endsWith.  Closes issue #52.  @psh