gets first half of string, ceil method