Moved "replace" method call inside "remove_colons_from_query" call.