ifcondition bug

Fixed bug where only the first data column was properly replaced in
string. replaced with list comprehension because python.