Question: I have a responsive top bar menu. On the left I have 2 buttons in a `<ul>` element with `float:left`. On the right I have another `<ul>` element with a `float:right` align.
In the middle of the two lists, I have one `<p>` element that receives dynamic text.

This works on large screens, but in the small devices the last `<ul>` goes to down.

JSfiddle: <http://jsfiddle.net/49zjn/1/>
Resize the Result panel to view my problem.

Any ideas of how to solve this?
Thanks

Answer: 
As I undestand your problem, you whant to remove punctuation from an input string. My variant `remove_punctuation` function:

```
def remove_punctuation(input_string):
    for item in punctuation:
        input_string = input_string.replace(item, '')
    return input_string

```
You can use [NTLK](https://pypi.org/project/nltk/) library instead of defining the stopping words.

```
pip install nltk

```

```py
from nltk import word_tokenize
from nltk.corpus import stopwords
stop_words = set(stopwords.words('english'))
for word in stop_words:
      sw = re.sub(r'(?<!\S)' + word + '+(?!\S)', "", sw, flags=re.IGNORECASE)

```

Also, performance can be enhanced with creating single compiled regex for all stop words and use it once.