added function to handle case without punctuation