python split function -avoids last empy space,[x for x in my_str.split(';') if x]