You can't read half of input but you can still split the string using tokenizer or using split api to get only first name.