StringSplit[stringsample,{"."}][[1]]
The double square bracket syntax appears not that intuitive with otherwise the usual way which is putting one function above the other.
If I understand correctly, the output of StringSplit function which is a list is being used by [[1]] to show just the first element of the list. What appears strange is the syntax.