move function partitionString from common package to SentencesSelector