Fix issue #6: Autocomplete ignores text before period

The issue description is not quite accurate but the issue of the text
before the period being doubled if "corona_sdk_complete_periods" is set
has been fixed.